package phoenix.web.locators.maturedating;

import org.openqa.selenium.By;
import phoenix.web.locators.base.MyAccountLocatorsBase;

/**
 * Created by AlexGolovko on 01.12.2014.
 */
public class MyAccountLocators extends MyAccountLocatorsBase
{
	public MyAccountLocators()
	{
		// Password
		elementMySettingsDiv = By.xpath("//div[@class='b-settings-row b-settings-password']");

		buttonEditPassword = By.xpath("//div[@class='b-settings-row b-settings-password']//button[@class='btn-light btn-edit-bare']");
		// Input
		inputNewPass = By.xpath("//input[@class='password-new']");
		inputOldPass = By.xpath("//input[@class='password-old']");
		// Submit
		buttonSavePassword = By.xpath("//button[@data-change-password='1']");
		blockSuccessPasswordMessage = By.xpath("//div[@class='b-success active']");

		// Email
		buttonEditEmail = By.xpath("//div[@class='b-settings-row b-settings-email']//button[@class='btn-light btn-edit-bare']");
		// inputs
		inputPassword = By.xpath("//input[@class='password']");
		inputNewEmailForm = By.xpath("//input[@data-emailupdate-email='1']");

		buttonSaveEmail = By.xpath("//button[@data-change-email='1']");
		elementSuccessMessage = By.xpath("//div[@data-emailupdate-result='1']");

		// Footer
		btnRemoveAccount = By.xpath("//a[@data-remove-account='data-remove-account']");
		btnBillingHistory = By.xpath("//a[@href='/#billingHistory']");
		btnDeactSubscr = By.xpath("//a[@id='deactivate-subscription']");

		btnRemindPassword = By.xpath("//a[@id='remind-password']");
		blockRemindPasswordMessage = By.xpath("//p[@id='password-error']");

		// Upgrade banner
		btnMembership = By.xpath("//a[@class='btn btn-text-orange']");
	}
}
